﻿using CHSystemApi.DataAccess.implement;
using CHSystemApi.Model.Entities;
using Microsoft.Extensions.DependencyInjection;


namespace CHSystemApi.DataAccess
{
    public static class Services
    {
        /// <summary>
        /// 数据访问层依赖注入方法
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddDataAccessByScoped(this IServiceCollection services)
        {
            return services.AddScoped<IDataAccess, UserDataAccess>();
        }
    }
}
